%%%-------------------------------------------------------------------
%%%    BASIC INFORMATION
%%%-------------------------------------------------------------------
%%% @copyright 2006 Erlang Training & Consulting Ltd
%%% @author  Martin Carlson <martin@erlang-consulting.com>
%%% @version 0.0.1
%%% @doc
%%% @end
%%%-------------------------------------------------------------------
-module(sql_app).
-vsn("$Rev$").

-behaviour(supervisor).
-behaviour(application).

%% API
-export([start/2,
	 stop/1,
	 start_link/0]).

-export([init/1]).

%%====================================================================
%% API
%%====================================================================
start(normal, []) ->
    start_link().

start_link() ->
    supervisor:start_link({local, ?MODULE}, ?MODULE, []).

stop(_Args) ->
    ok.

%%====================================================================
%% Supervisor functions
%%====================================================================
init([]) ->
    PoolMgr = {pool_mgr, {sql_pool_mgr_srv, start_link, []}, 
	       permanent, 1000, worker, [sql_pool_mgr_srv]},    
    {ok, {{one_for_all, 10, 60}, [PoolMgr]}}. 

%%====================================================================
%% Internal functions
%%====================================================================
    
